/*
 * @Description:
 * @Author: kanglin
 * @Date: 2018-06-25 11:51:28
 * @Copyright: Created by Panxsoft.
 */
const DEVICE_WIDTH = document.body.clientWidth;
const CHART_WIDTH = parseInt((710 / 750) * DEVICE_WIDTH, 10);
const CHART_HEIGHT = parseInt((360 / 750) * DEVICE_WIDTH, 10);
// demo


class Picture {
	constructor(canvas, width, height, color = '#ffffff') {
		const context = canvas.getContext('2d');
		canvas.width = width;
		canvas.height = height;
		context.fillStyle = color;
		context.fillRect(0, 0, width, height);
	}
};